package com.cyl.manager.pms.convert;

import com.cyl.h5.domain.dto.CategoryDTO;
import com.cyl.manager.pms.domain.entity.ProductCategory;
import com.cyl.manager.pms.domain.vo.ProductCategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * 商品分类  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE, componentModel = MappingConstants.ComponentModel.SPRING)
public interface ProductCategoryConvert {

    List<ProductCategoryVO> dos2vos(List<ProductCategory> list);

    CategoryDTO do2dto(ProductCategory it);
}
